Types

Link copied to clipboard
interface Android
Link copied to clipboard
interface IOS

Properties

Link copied to clipboard
Link copied to clipboard

Groups ios-specific API to reduce toplevel clutter.

Functions

Link copied to clipboard
abstract fun verifyAttestation(attestationProof: List<ByteArray>, challenge: ByteArray, clientData: ByteArray? = null): AttestationResult

Convenience method to verifies both Android Key Attestation or Apple App Attestation structures of the client (in attestationProof) if the device can be verified and challenge matches the attestation challenge. On Android, this is simply the certificate chain from the attestation certificate (i.e. the certificate corresponding to the key to be attested) up to one of the Google hardware attestation root certificates. on iOS this contains at least the AppAttest attestation statement. Calls verifyAttestationAndroid or verifyAttestationApple depending on the kind of attestation proof prpvoded.

Link copied to clipboard
open fun <T : PublicKey> verifyKeyAttestation(attestationProof: List<ByteArray>, expectedChallenge: ByteArray, keyToBeAttested: T): KeyAttestation<T>

Verifies key attestation for both Android and Apple devices.